package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import com.lzy.okgo.model.HttpParams
import tmproject.hlhj.fhp.cartrans.IView.IdentifyView
import tmproject.hlhj.fhp.cartrans.javaBean.BaseBean
import tmproject.hlhj.fhp.cartrans.modules.IdentifyModule

/**
 * Created by Administrator on 2018/8/28/028.
 */
class IdentifyPresenter :BasePresenter<IdentifyModule,IdentifyView>(), IdentifyModule.OnIdentifyListener {
    override fun setIDentify() {
        view?.setIdentify()
    }

    fun getIdentify(c:Context){
        module.getIdentify(c)
    }

    fun saveInfo(c:Context,httpParams: HttpParams){
        module.changeInfo(c,httpParams)
    }
    override fun createModule() {
        module= IdentifyModule()
        module.listener=this
    }

    override fun changeInfo(baseBean: BaseBean) {
        view?.changeInfo(baseBean)
    }
}